/*  1:   */ package org.intellij.lang.regexp;
/*  2:   */ 
/*  3:   */

import com.intellij.lexer.FlexAdapter;
import org.jetbrains.annotations.NotNull;

import java.util.EnumSet;

/*  4:   */
/*  5:   */
/*  6:   */ 
/*  7:   */ public class RegExpLexer
/*  8:   */   extends FlexAdapter
/*  9:   */ {
/* 10:   */   private static final int a = 16384;
/* 11:   */   private final EnumSet<RegExpCapability> b;
/* 12:   */   
/* 13:   */   public RegExpLexer(EnumSet<RegExpCapability> paramEnumSet)
/* 14:   */   {
/* 15:29 */     super(new _RegExLexer(paramEnumSet));
/* 16:30 */     this.b = paramEnumSet;
/* 17:   */   }
/* 18:   */   
/* 19:   */   public void start(@NotNull CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
/* 20:   */   {
/* 21:34 */     if (paramCharSequence == null) {
/* 22:34 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/lang/regexp/RegExpLexer", "start" }));
/* 23:   */     }
/* 24:34 */     getFlex().commentMode = (((paramInt3 & 0x4000) != 0) || (this.b.contains(RegExpCapability.COMMENT_MODE)));
/* 25:35 */     super.start(paramCharSequence, paramInt1, paramInt2, paramInt3 & 0xFFFFBFFF);
/* 26:   */   }
/* 27:   */   
/* 28:   */   public _RegExLexer getFlex()
/* 29:   */   {
/* 30:39 */     return (_RegExLexer)super.getFlex();
/* 31:   */   }
/* 32:   */   
/* 33:   */   public int getState()
/* 34:   */   {
/* 35:43 */     boolean bool = getFlex().commentMode;
/* 36:44 */     int i = super.getState();
/* 37:45 */     return bool ? i | 0x4000 : i;
/* 38:   */   }
/* 39:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.RegExpLexer

 * JD-Core Version:    0.7.0.1

 */